<?php
class Test_IndexController extends Veneer_Controller_Module
{
	function init()
	{

		$this->_dbArray =array();
		$this->_moduleName = 'test';
		$this->_module_id = 98;
		parent::init();
	}
    public function preDispatch()
    {
/*		if($this->_request->getActionName() == 'test2')
		{
			$this->_forward('test', 'index','test',array('ergf'=>'wr','erte'=>'werwer4t'));
		}
		$request = $this->_request;

*/
    }
    public function sessionAction()
    {
    }
    public function testAction()
    {
		print"time=".time()."<br/>";
		print "<pre>";
		print_r($this->_getAllParams());
		print "</pre>";

		// $this->_forward('index');
    }
    public function dispconfigAction()
    {
		print "<pre>";
		if (file_exists(APP_PATH . "sitedata/" . $_SERVER['HTTP_HOST'] . "/")) {
			print "***********domain found - " . $_SERVER['HTTP_HOST'];
		} else {
			print "************domain not found - " .$_SERVER['HTTP_HOST'];
		}
		$appPath = APP_PATH . "sitedata/" . $_SERVER['HTTP_HOST'] . "/";
		print "** " . $appPath;
		print "</pre>";

		// $this->_forward('index');
    }
    public function dispsessionAction()
    {
		if(Zend_Session::sessionExists()) {
			$defaultSession = new Zend_Session_Namespace('Veneer_User');
			print "<h1>Session Exists</h1>";
			$this->_debug->print_r($defaultSession);
		} else {
			print "<h1>No session Exists</h1>";
		}
    }
    public function viewSessionAction()
    {
		$this->view->title = "Session Data";

		$this->view->content = $this->_session->printSession();
		$this->_helper->viewRenderer->renderScript('veneerShowContent.phtml');
    }
    public function rendertestAction()
    {
//		$this->initView();        // initialize view
        $this->render('test');
		print "HERE ANYWAY but no view";
    }

}

